<?php 

require_once ('../conf/pdoConnect.php');
require_once ('./check.php');

$uid = intval($_SESSION['uid']);

$mailList = getMailByUid($db, $uid);
$count = $mailList->rowCount();

$now = "已发邮件";

function getMailByUid($db, $uid)
{	
	$sql = "select * from sendMail where `belongId` = $uid order by `sendTime` desc";
	$query = $db->query($sql);
	return $query;
}

require_once ('../mailList.php');
$db = null;